Page({
  data: {
    privacyContractName: "英语学习小程序隐私保护指引", // 改为您的小程序实际名称
    hasAgreePrivacyAuthorization: false
  },
  
  handleAgreePrivacyAuthorization() {
    this.setData({
      hasAgreePrivacyAuthorization: true
    })
    wx.setStorageSync('hasAgreePrivacyAuthorization', true)
    wx.navigateBack()
  },
  
  handleDisagreePrivacyAuthorization() {
    wx.showModal({
      title: '提示',
      content: '您需要同意隐私保护指引才能正常使用小程序功能',
      showCancel: false
    })
  }
}) 